package com.zrf.testchatgpt.util;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class Result {
        private String code;
        private String msg;
        private Object data;
        public static Result success(Object data){
                return Result.builder().code("200").msg("成功").data(data).build();
        }
        public static Result success( ){
                return Result.builder().code("200").msg("成功").data(null).build();
        }
}
